/****************************************************
          File Name:shm_open.c
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Thu 25 Sep 2014 07:15:22 PM CST
*****************************************************/

#include"posix_ipc.h"

int main(int argc, char *argv[])
{
    Usage(argc,"/shm",argv[0],argv[1]);

    int flag=O_CREAT|O_RDWR;
    int shm;

    shm=shm_open(argv[1],flag,MODE);
    if(shm==-1)
        err("shm_open");

    printf("shm = %d \n",shm);
    exit(EXIT_SUCCESS);
}
